package org.zjx.data.screen;

import org.zjx.command.entity.screen.*;
import org.zjx.command.enums.TeleportType;
import org.zjx.data.BaseSceneBuilder;

import java.awt.*;

public class FangCunShanSceneBuilder extends BaseSceneBuilder {

    @Override
    protected String getSceneName() {
        return "方寸山";
    }

    @Override
    protected Dimension getSceneSize() {
        return new Dimension(186, 167);
    }

    @Override
    protected void addMonsters() {

    }

    @Override
    protected void addNpcs() {
        addNpc("接引道童", new Point(120, 136));
        addNpc("觉明", new Point(65, 46));
        addNpc("觉岸", new Point(111, 124));
        addNpc("灵儿", new Point(34, 95));
    }

    @Override
    protected void addRooms() {
        Room lingTaiGong = createRoom("灵台宫", new Dimension(74, 55));
        addNpcToRoom(lingTaiGong, "菩提祖师", new Point(46, 27));
        rooms.add(lingTaiGong);
    }

    @Override
    protected void addTeleports() {
        // 场景传送点
        addSceneTeleport(new Point(17, 36), "长寿村", new Point(109, 204), new Point(12, 36));
        addSceneTeleport(new Point(126, 133), "灵台宫", new Point(20, 13), new Point(129, 136));

        // 房间入口传送点
        addRoomTeleport(new Point(126, 133), "灵台宫", new Point(20, 13), new Point(129, 136));
    }

    public static void main(String[] args) {
        new FangCunShanSceneBuilder().execute("fangcunshan_scene.json", "方寸山");
    }
}